﻿using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using NHibernate.Criterion;

namespace Cms.BLL
{
    public class Sys_Selffom_List_Layout:BaseDao<Model.Sys_Selfform_List_Layout,string>
    {
        public IList<Model.Sys_Selfform_List_Layout> GetModelByFormID(string fromid) {
            ICriteria crt = this.CurrentSession.CreateCriteria(typeof(Model.Sys_Selfform_List_Layout));
            crt.Add(Expression.Eq("Formid", fromid));
            return crt.List<Model.Sys_Selfform_List_Layout>();
        }
    }
}
